package com.tts.service;

import java.util.List;

import com.tts.bean.ProductBacklog;
import com.tts.mapper.ProductBacklogMapper;

public class ProductBacklogService {
	private ProductBacklogMapper productBacklogMapper;
	
	public void setProductBacklogMapper(ProductBacklogMapper productBacklogMapper) {
		this.productBacklogMapper = productBacklogMapper;
	}
	
	public List<ProductBacklog> getProductBaclogs() {
		return productBacklogMapper.selectAllProductBacklogs();
	}
	
	public void addNewProductBacklog(ProductBacklog newProductBacklog) {
		productBacklogMapper.insertProductBacklog(newProductBacklog);
	}
}
